package com.example.comment_oa.pojos.xinzi;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName jiben_gongzidan
 */
@TableName(value ="jiben_gongzidan")
@Data
public class JibenGongzidan implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer jibenZhujian;

    /**
     * 
     */
    private String jibenId;

    /**
     * 
     */
    private String jibenName;

    /**
     * 
     */
    private String jibenGonghao;

    /**
     * 
     */
    private String jibenBumen;

    /**
     * 
     */
    private Integer jibenBumenid;

    /**
     * 
     */
    private String jibenZhiwu;

    /**
     * 
     */
    private Integer jibenZhiwuid;

    /**
     * 
     */
    private Double jibenJibenxinzi;

    /**
     * 
     */
    private Double jibenGangweijintie;

    /**
     * 
     */
    private Double jibenKaoqinxinzi;

    /**
     * 
     */
    private Double jibenJiabanxinzi;

    /**
     * 
     */
    private Double jibenWuxianyijindaikou;

    /**
     * 
     */
    private Double jibenGongsibutie;

    /**
     * 
     */
    private Double jibenQita;

    /**
     * 
     */
    private Double jibenShifagongzi;

    /**
     * 
     */
    private Integer jibenIssend;

    /**
     * 
     */

    @JsonFormat(pattern = "yyyy-MM",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM")
    private Date jibenFafangshijian;

    /**
     * 
     */
    private String jibenBeizhu;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        JibenGongzidan other = (JibenGongzidan) that;
        return (this.getJibenZhujian() == null ? other.getJibenZhujian() == null : this.getJibenZhujian().equals(other.getJibenZhujian()))
            && (this.getJibenId() == null ? other.getJibenId() == null : this.getJibenId().equals(other.getJibenId()))
            && (this.getJibenName() == null ? other.getJibenName() == null : this.getJibenName().equals(other.getJibenName()))
            && (this.getJibenGonghao() == null ? other.getJibenGonghao() == null : this.getJibenGonghao().equals(other.getJibenGonghao()))
            && (this.getJibenBumen() == null ? other.getJibenBumen() == null : this.getJibenBumen().equals(other.getJibenBumen()))
            && (this.getJibenBumenid() == null ? other.getJibenBumenid() == null : this.getJibenBumenid().equals(other.getJibenBumenid()))
            && (this.getJibenZhiwu() == null ? other.getJibenZhiwu() == null : this.getJibenZhiwu().equals(other.getJibenZhiwu()))
            && (this.getJibenZhiwuid() == null ? other.getJibenZhiwuid() == null : this.getJibenZhiwuid().equals(other.getJibenZhiwuid()))
            && (this.getJibenJibenxinzi() == null ? other.getJibenJibenxinzi() == null : this.getJibenJibenxinzi().equals(other.getJibenJibenxinzi()))
            && (this.getJibenGangweijintie() == null ? other.getJibenGangweijintie() == null : this.getJibenGangweijintie().equals(other.getJibenGangweijintie()))
            && (this.getJibenKaoqinxinzi() == null ? other.getJibenKaoqinxinzi() == null : this.getJibenKaoqinxinzi().equals(other.getJibenKaoqinxinzi()))
            && (this.getJibenJiabanxinzi() == null ? other.getJibenJiabanxinzi() == null : this.getJibenJiabanxinzi().equals(other.getJibenJiabanxinzi()))
            && (this.getJibenWuxianyijindaikou() == null ? other.getJibenWuxianyijindaikou() == null : this.getJibenWuxianyijindaikou().equals(other.getJibenWuxianyijindaikou()))
            && (this.getJibenGongsibutie() == null ? other.getJibenGongsibutie() == null : this.getJibenGongsibutie().equals(other.getJibenGongsibutie()))
            && (this.getJibenQita() == null ? other.getJibenQita() == null : this.getJibenQita().equals(other.getJibenQita()))
            && (this.getJibenShifagongzi() == null ? other.getJibenShifagongzi() == null : this.getJibenShifagongzi().equals(other.getJibenShifagongzi()))
            && (this.getJibenIssend() == null ? other.getJibenIssend() == null : this.getJibenIssend().equals(other.getJibenIssend()))
            && (this.getJibenFafangshijian() == null ? other.getJibenFafangshijian() == null : this.getJibenFafangshijian().equals(other.getJibenFafangshijian()))
            && (this.getJibenBeizhu() == null ? other.getJibenBeizhu() == null : this.getJibenBeizhu().equals(other.getJibenBeizhu()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getJibenZhujian() == null) ? 0 : getJibenZhujian().hashCode());
        result = prime * result + ((getJibenId() == null) ? 0 : getJibenId().hashCode());
        result = prime * result + ((getJibenName() == null) ? 0 : getJibenName().hashCode());
        result = prime * result + ((getJibenGonghao() == null) ? 0 : getJibenGonghao().hashCode());
        result = prime * result + ((getJibenBumen() == null) ? 0 : getJibenBumen().hashCode());
        result = prime * result + ((getJibenBumenid() == null) ? 0 : getJibenBumenid().hashCode());
        result = prime * result + ((getJibenZhiwu() == null) ? 0 : getJibenZhiwu().hashCode());
        result = prime * result + ((getJibenZhiwuid() == null) ? 0 : getJibenZhiwuid().hashCode());
        result = prime * result + ((getJibenJibenxinzi() == null) ? 0 : getJibenJibenxinzi().hashCode());
        result = prime * result + ((getJibenGangweijintie() == null) ? 0 : getJibenGangweijintie().hashCode());
        result = prime * result + ((getJibenKaoqinxinzi() == null) ? 0 : getJibenKaoqinxinzi().hashCode());
        result = prime * result + ((getJibenJiabanxinzi() == null) ? 0 : getJibenJiabanxinzi().hashCode());
        result = prime * result + ((getJibenWuxianyijindaikou() == null) ? 0 : getJibenWuxianyijindaikou().hashCode());
        result = prime * result + ((getJibenGongsibutie() == null) ? 0 : getJibenGongsibutie().hashCode());
        result = prime * result + ((getJibenQita() == null) ? 0 : getJibenQita().hashCode());
        result = prime * result + ((getJibenShifagongzi() == null) ? 0 : getJibenShifagongzi().hashCode());
        result = prime * result + ((getJibenIssend() == null) ? 0 : getJibenIssend().hashCode());
        result = prime * result + ((getJibenFafangshijian() == null) ? 0 : getJibenFafangshijian().hashCode());
        result = prime * result + ((getJibenBeizhu() == null) ? 0 : getJibenBeizhu().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", jibenZhujian=").append(jibenZhujian);
        sb.append(", jibenId=").append(jibenId);
        sb.append(", jibenName=").append(jibenName);
        sb.append(", jibenGonghao=").append(jibenGonghao);
        sb.append(", jibenBumen=").append(jibenBumen);
        sb.append(", jibenBumenid=").append(jibenBumenid);
        sb.append(", jibenZhiwu=").append(jibenZhiwu);
        sb.append(", jibenZhiwuid=").append(jibenZhiwuid);
        sb.append(", jibenJibenxinzi=").append(jibenJibenxinzi);
        sb.append(", jibenGangweijintie=").append(jibenGangweijintie);
        sb.append(", jibenKaoqinxinzi=").append(jibenKaoqinxinzi);
        sb.append(", jibenJiabanxinzi=").append(jibenJiabanxinzi);
        sb.append(", jibenWuxianyijindaikou=").append(jibenWuxianyijindaikou);
        sb.append(", jibenGongsibutie=").append(jibenGongsibutie);
        sb.append(", jibenQita=").append(jibenQita);
        sb.append(", jibenShifagongzi=").append(jibenShifagongzi);
        sb.append(", jibenIssend=").append(jibenIssend);
        sb.append(", jibenFafangshijian=").append(jibenFafangshijian);
        sb.append(", jibenBeizhu=").append(jibenBeizhu);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}